import 'package:dailoz/generated/json/base/json_convert_content.dart';
import 'package:dailoz/entity/task_time_entity.dart';

TaskTimeEntity $TaskTimeEntityFromJson(Map<String, dynamic> json) {
  final TaskTimeEntity taskTimeEntity = TaskTimeEntity();
  final int? hours = jsonConvert.convert<int>(json['hours']);
  if (hours != null) {
    taskTimeEntity.hours = hours;
  }
  final int? minutes = jsonConvert.convert<int>(json['minutes']);
  if (minutes != null) {
    taskTimeEntity.minutes = minutes;
  }
  return taskTimeEntity;
}

Map<String, dynamic> $TaskTimeEntityToJson(TaskTimeEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['hours'] = entity.hours;
  data['minutes'] = entity.minutes;
  return data;
}
